/* 自定义日期选择器样式 */
.custom-datepicker {
  width: 100%;
  border-radius: 6px !important;
}

.custom-datepicker:hover {
  border-color: #4096ff !important;
}

.custom-datepicker-dropdown {
  border-radius: 8px !important;
  padding: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
}

.custom-datepicker-dropdown .ant-picker-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 8px;
}

.custom-datepicker-dropdown .ant-picker-header button {
  padding: 0 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.custom-datepicker-dropdown .ant-picker-header button:hover {
  background-color: #f5f5f5;
}

.custom-datepicker-dropdown .ant-picker-cell {
  padding: 5px 0;
}

.custom-datepicker-dropdown .ant-picker-cell-in-view {
  color: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  transition: background-color 0.3s;
}

.custom-datepicker-dropdown .ant-picker-cell-in-view:hover .ant-picker-cell-inner {
  background-color: #f5f5f5;
}

.custom-datepicker-dropdown .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
  background-color: #1890ff;
  color: white;
  border-radius: 4px;
  font-weight: 500;
}

.custom-datepicker-dropdown .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {
  border: 1px solid #1890ff;
  border-radius: 4px;
}

.custom-datepicker-dropdown .ant-picker-footer {
  border-top: 1px solid #f0f0f0;
  padding: 8px;
}

.custom-datepicker-dropdown .ant-picker-today-btn {
  color: #1890ff;
}

.custom-datepicker-dropdown .ant-picker-today-btn:hover {
  color: #40a9ff;
}

/* 日期选择器内部的日期单元格样式 */
.custom-datepicker-dropdown .ant-picker-content th {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
  padding: 8px 0;
}

.custom-datepicker-dropdown .ant-picker-cell-inner {
  height: 28px;
  width: 28px;
  line-height: 28px;
  margin: 0 auto;
  border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .custom-datepicker-dropdown {
    width: 280px !important;
  }
  
  .custom-datepicker-dropdown .ant-picker-cell-inner {
    height: 32px;
    width: 32px;
    line-height: 32px;
  }
}
